﻿using System;
using System.Xml.Linq;
using Facebook.Json;

namespace Facebook.Configuration
{
    public class StoryTemplateElement
    {
        public StoryTemplateElement() { }

        public StoryTemplateElement(XElement element)
        {
            this.Title = element.Element("title").Value;
            this.Body = element.Element("body").Value;
        }

        [JsonProperty("template_title")]
        public String Title { get; set; }

        [JsonProperty("template_body")]
        public String Body { get; set; }
    }
}